package com.itheima.reggin.dto;

import com.itheima.reggin.entity.Dish;
import com.itheima.reggin.entity.DishFlavor;
import lombok.Data;

import java.util.ArrayList;
import java.util.List;

//因为继承了 Dish类 所以DishDto也继承Dish的类  而且另外加上了一个口味表的字段
@Data
public class DishDto extends Dish {

    private List<DishFlavor> flavors = new ArrayList<>();

    private String categoryName;

//    private Integer copies;
}
